#!/bin/bash

echo "开始下载主要依赖..."
mkdir Source
cd Source
git clone https://gitee.com/thtfcccj/SWM341_Lib.git
git clone https://gitee.com/thtfcccj/cBootDcl.git
git clone https://gitee.com/mirrors/lvgl.git
echo "lvgl： switch为 release/v8.4 (20240508)版..."
git switch release/v8.4
git clone https://gitee.com/thtfcccj/TGUI_TMENU_TIME.git
mv TGUI_TMENU_TIME  TGUI
git clone https://gitee.com/thtfcccj/cFonts.git

echo "开始下载组件依赖..."
mkdir Components
cd Components
git clone https://gitee.com/thtfcccj/Flash.git
git clone https://gitee.com/thtfcccj/Spi.git
git clone https://gitee.com/thtfcccj/LvglIcInit.git
git clone https://gitee.com/thtfcccj/Usart.git
git clone https://gitee.com/thtfcccj/USB.git
git clone https://gitee.com/thtfcccj/FatFs.git
git clone https://gitee.com/thtfcccj/CompComm.git
git clone https://gitee.com/thtfcccj/CompGUI.git
git clone https://gitee.com/thtfcccj/CompMix.git
git clone https://gitee.com/thtfcccj/I2c.git
git clone https://gitee.com/thtfcccj/eMultimedia.git
git clone https://gitee.com/thtfcccj/Helix.git
git clone https://gitee.com/thtfcccj/TJpgDec.git
echo "脚本执行完毕，按任意键继续..."
read -n 1 -s
echo
